[INFO] fetching crate ffigen 0.0.1...
[INFO] building ffigen-0.0.1 against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] extracting crate ffigen 0.0.1 into /workspace/builds/worker-2/source
[INFO] validating manifest of crates.io crate ffigen 0.0.1 on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate ffigen 0.0.1
[INFO] finished tweaking crates.io crate ffigen 0.0.1
[INFO] tweaked toml for crates.io crate ffigen 0.0.1 written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 93716a735a704e3c84892d7866769e8623c741c611b1599a2e02a878e74d94cb
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "93716a735a704e3c84892d7866769e8623c741c611b1599a2e02a878e74d94cb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "93716a735a704e3c84892d7866769e8623c741c611b1599a2e02a878e74d94cb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "93716a735a704e3c84892d7866769e8623c741c611b1599a2e02a878e74d94cb", kill_on_drop: false }`
[INFO] [stdout] 93716a735a704e3c84892d7866769e8623c741c611b1599a2e02a878e74d94cb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ce1016a3fac5d67070832028ad8907d32cb76f455bb6a702f564f80305c0474a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "ce1016a3fac5d67070832028ad8907d32cb76f455bb6a702f564f80305c0474a", kill_on_drop: false }`
[INFO] [stderr]    Compiling rand_core v0.4.2
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]    Compiling serde_derive v1.0.126
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling serde_json v1.0.64
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling term v0.4.6
[INFO] [stderr]    Compiling itoa v0.4.7
[INFO] [stderr]    Compiling extprim v1.7.1
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling log v0.3.9
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling serde v1.0.126
[INFO] [stderr]    Compiling syntex_pos v0.59.1
[INFO] [stderr]    Compiling toml v0.5.8
[INFO] [stderr]    Compiling syntex_errors v0.59.1
[INFO] [stderr]    Compiling syntex_syntax v0.59.1
[INFO] [stderr]    Compiling ffigen v0.0.1 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: could not find `Parser` in `toml`
[INFO] [stdout]   --> src/parser/cargo.rs:39:30
[INFO] [stdout]    |
[INFO] [stdout] 39 |     let config = match toml::Parser::new(&config_content).parse() {
[INFO] [stdout]    |                              ^^^^^^ could not find `Parser` in `toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `MetaItem_` in `ast`
[INFO] [stdout]   --> src/parser/source.rs:33:38
[INFO] [stdout]    |
[INFO] [stdout] 33 | ...                   ast::MetaItem_::MetaWord(ref w) => interned_to_string(w) == "no_mangle",
[INFO] [stdout]    |                            ^^^^^^^^^ could not find `MetaItem_` in `ast`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ItemFn` in module `ast`
[INFO] [stdout]   --> src/parser/source.rs:29:18
[INFO] [stdout]    |
[INFO] [stdout] 29 |             ast::ItemFn(ref decl, _, _, abi, _, _) if abi == abi::C => {
[INFO] [stdout]    |                  ^^^^^^ not found in `ast`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this tuple variant
[INFO] [stdout]    |
[INFO] [stdout] 1  | use parser::source::visit::FnKind::ItemFn;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `C` in module `abi`
[INFO] [stdout]   --> src/parser/source.rs:29:67
[INFO] [stdout]    |
[INFO] [stdout] 29 |             ast::ItemFn(ref decl, _, _, abi, _, _) if abi == abi::C => {
[INFO] [stdout]    |                                                                   ^ not found in `abi`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  | use Lang::C;
[INFO] [stdout]    |
[INFO] [stdout] 1  | use parser::source::abi::Abi::C;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0531]: cannot find tuple struct or tuple variant `ItemMod` in module `ast`
[INFO] [stdout]   --> src/parser/source.rs:51:18
[INFO] [stdout]    |
[INFO] [stdout] 51 |             ast::ItemMod(_) => {
[INFO] [stdout]    |                  ^^^^^^^ not found in `ast`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `InternedString` in module `parse::token`
[INFO] [stdout]    --> src/parser/source.rs:115:48
[INFO] [stdout]     |
[INFO] [stdout] 115 | fn interned_to_string(interned: &parse::token::InternedString) -> String {
[INFO] [stdout]     |                                                ^^^^^^^^^^^^^^ not found in `parse::token`
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 1   | use syntex_syntax::symbol::InternedString;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `lookup` found for enum `toml::Value` in the current scope
[INFO] [stdout]   --> src/parser/cargo.rs:44:37
[INFO] [stdout]    |
[INFO] [stdout] 44 |     let package_name = match config.lookup("package.name") {
[INFO] [stdout]    |                                     ^^^^^^ method not found in `toml::Value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `lookup` found for enum `toml::Value` in the current scope
[INFO] [stdout]   --> src/parser/cargo.rs:57:33
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let lib_name = match config.lookup("lib.name") {
[INFO] [stdout]    |                                 ^^^^^^ method not found in `toml::Value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `lookup` found for enum `toml::Value` in the current scope
[INFO] [stdout]   --> src/parser/cargo.rs:69:35
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let crate_type = match config.lookup("lib.crate_type") {
[INFO] [stdout]    |                                   ^^^^^^ method not found in `toml::Value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `node` on type `&Attribute`
[INFO] [stdout]   --> src/parser/source.rs:32:37
[INFO] [stdout]    |
[INFO] [stdout] 32 | ...                   match v.node.value.node {
[INFO] [stdout]    |                               ^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `id`, `style`, `path`, `tokens`, `is_sugared_doc`, `span`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/parser/source.rs:73:16
[INFO] [stdout]    |
[INFO] [stdout] 73 |     let sess = parse::ParseSess::new();
[INFO] [stdout]    |                ^^^^^^^^^^^^^^^^^^^^^-- supplied 0 arguments
[INFO] [stdout]    |                |
[INFO] [stdout]    |                expected 1 argument
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.59.1/src/parse/mod.rs:58:12
[INFO] [stdout]    |
[INFO] [stdout] 58 |     pub fn new(file_path_mapping: FilePathMapping) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 3 arguments were supplied
[INFO] [stdout]    --> src/parser/source.rs:74:17
[INFO] [stdout]     |
[INFO] [stdout] 74  |     let krate = parse::parse_crate_from_file(path, cfg, &sess);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ----  ---  ----- supplied 3 arguments
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 expected 2 arguments
[INFO] [stdout]     |
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.59.1/src/parse/mod.rs:101:8
[INFO] [stdout]     |
[INFO] [stdout] 101 | pub fn parse_crate_from_file<'a>(input: &Path, sess: &'a ParseSess) -> PResult<'a, ast::Crate> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/parser/source.rs:81:41
[INFO] [stdout]    |
[INFO] [stdout] 81 |         visit::walk_crate(&mut visitor, &krate);
[INFO] [stdout]    |                                         ^^^^^^ expected struct `syntex_syntax::ast::Crate`, found enum `Result`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&syntex_syntax::ast::Crate`
[INFO] [stdout]               found reference `&Result<syntex_syntax::ast::Crate, DiagnosticBuilder<'_>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `DefaultReturn` found for enum `FunctionRetTy` in the current scope
[INFO] [stdout]    --> src/parser/source.rs:100:29
[INFO] [stdout]     |
[INFO] [stdout] 100 |         ast::FunctionRetTy::DefaultReturn(_) | ast::FunctionRetTy::NoReturn(_) => ReturnType::Void,
[INFO] [stdout]     |                             ^^^^^^^^^^^^^ variant or associated item not found in `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `NoReturn` found for enum `FunctionRetTy` in the current scope
[INFO] [stdout]    --> src/parser/source.rs:100:68
[INFO] [stdout]     |
[INFO] [stdout] 100 |         ast::FunctionRetTy::DefaultReturn(_) | ast::FunctionRetTy::NoReturn(_) => ReturnType::Void,
[INFO] [stdout]     |                                                                    ^^^^^^^^ variant or associated item not found in `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Return` found for enum `FunctionRetTy` in the current scope
[INFO] [stdout]    --> src/parser/source.rs:101:29
[INFO] [stdout]     |
[INFO] [stdout] 101 |         ast::FunctionRetTy::Return(ref r) => ReturnType::Type(translate_type(r))
[INFO] [stdout]     |                             ^^^^^^ variant or associated item not found in `FunctionRetTy`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/marshal/mod.rs:16:38
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let allocated = libc::malloc(translated.len() as u64 + 1) as *mut u8;
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u64`
[INFO] [stdout]    |
[INFO] [stdout] help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let allocated = libc::malloc((translated.len() as u64 + 1).try_into().unwrap()) as *mut u8;
[INFO] [stdout]    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 17 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0412, E0425, E0433, E0531, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `ffigen`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "ce1016a3fac5d67070832028ad8907d32cb76f455bb6a702f564f80305c0474a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce1016a3fac5d67070832028ad8907d32cb76f455bb6a702f564f80305c0474a", kill_on_drop: false }`
[INFO] [stdout] ce1016a3fac5d67070832028ad8907d32cb76f455bb6a702f564f80305c0474a
